import { useMemo } from "react";
const Table = (props) => {
  return (
    <table>
      <thead>
        <tr>
          <th>序号</th>
          <th>平台</th>
          <th>账户</th>
          <th>密码</th>
          <th>备注</th>
          <th>操作</th>
        </tr>
      </thead>
      <tbody>
          {props.data.map((item, index) => {
            return <tr key={index}>
                <td>{index+1}</td>
                <td>{item.http}</td>
                <td>{item.username}</td>
                <td>{item.password}</td>
            </tr>
          })}
      </tbody>
    </table>
  );
};
export default Table;
